package com.yzt.loginmodule.report.adapter;

import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.yzt.zhuju.network.entity.sysConfig.ReportItemBean;
import com.yzt.loginmodule.R;
import com.yzt.zhuju.widget.tuiview.TUIImageView;

import org.jetbrains.annotations.NotNull;

/**
 * author : bob
 * date   : 2022/12/8
 * desc   : 举报模块选项适配器
 */
public class ReportItemAdapter extends BaseQuickAdapter<ReportItemBean, BaseViewHolder> {

    public ReportItemAdapter() {
        super(R.layout.item_report_item);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder holder, ReportItemBean item) {
        TextView selectTv = holder.getView(R.id.select_tv);
        selectTv.setText(item.getContent());
        TUIImageView img_select = holder.getView(R.id.img_select);
        img_select.setSelected(item.isSelect());
    }
}

